package at.fhooe.im440.pandora.entities;

import java.awt.Graphics2D;
import java.awt.geom.Point2D;

import at.fhooe.im440.pandora.collision.CircleCollider;
import at.fhooe.im440.pandora.core.Core;


public class DebugRect extends Entity {

	private float height;
	private float width;
	
	private float x;
	private float y;
	
	public DebugRect (Core core, String name, float x, float y, float width, float height) {
		super(name, core, x, y, width/2.0f);
		this.x=x;
		this.y=y;
		this.width = width;
		this.height = height;
	}

	@Override
	public void render(Graphics2D g) {
		g.fillRect((int)x, (int)y, (int) width, (int) height);
	}

	@Override
	public void update() {
		x++;
		y++;
		super.updateCollider(x, y);
	}

	@Override
	public Point2D getPosition() {
		return new Point2D.Float(x,y);
	}

	@Override
	public void setPosition(float x, float y) {
	}

	@Override
	public void collided(CircleCollider col) {
		// TODO Auto-generated method stub
		
	}

}
